import request from '../utils/fetch'
export function getUserOrderCostList (data) {
  return request({
    url: '/admin/finance/getUserOrderCostList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function getUserOrderCostExcel (data) {
  return request({
    url: '/admin/finance/getUserOrderCostExcel',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getBackStopBillList (data) {
  return request({
    url: '/admin/finance/getBackStopBillList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getCostList (data) {
  return request({
    url: '/admin/finance/getCostList',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}

export function getBackStopCostDetail (data) {
  return request({
    url: '/admin/finance/getBackStopCostDetail',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getHouseOutOrderCostDetail (data) {
  return request({
    url: '/admin/finance/getHouseOutOrderCostDetail',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getAdminFinanceTotal(data) {
  return request({
      url: '/admin/finance/getAdminFinanceTotal',
      method: 'get',
      requestBody: 'query',
      loading: true,
      params: data
  })
}
export function getHomePage (data) {
  return request({
    url: '/admin/finance/getHomePage',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getHoBackStopListByMonth (data) {
  return request({
    url: '/admin/finance/getHoBackStopListByMonth',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function payCost (data) {
  return request({
    url: '/admin/finance/payCost',
    method: 'post',
    requestBody: 'query',
    loading: true,
    params: data
  })
}
export function getCostTotal (data) {
  return request({
    url: '/admin/finance/getCostTotal',
    method: 'get',
    requestBody: 'query',
    loading: true,
    params: data
  })
}